package com.dkm.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;

import com.dkm.entity.DynamicMessage;
import com.dkm.util.ResultUtil;

public interface DynamicMessageService {

	/**
	 * 添加动态消息
	 * @param dynamicMessage
	 * @return
	 */
	ResultUtil addDynamicMessage(String sid,DynamicMessage dynamicMessage);
	
	/**
	 * 多条件分页查询动态消息
	 * @param map
	 * @param pageable
	 * @return
	 */
	Page<DynamicMessage> findAllDynamicMessages(Map<String, Object> map,Pageable pageable);
	
	/**
	 * 修改动态消息
	 * @param dynamicMessage
	 * @return
	 */
	ResultUtil updateDynamicMessage(DynamicMessage dynamicMessage);
	
	/**
	 * 获取用户未读消息
	 * @param login_name 登录名
	 * @return
	 */
	List<DynamicMessage> getUnreadDynamicMessage(String login_name);
}
